Skip to content

Out-of-line prop_conv_solvert::decision_procedure_text to work around g++-5 bug #4723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

smowton
Copy link
Contributor

@smowton smowton commented May 29, 2019

As elaborated in the comment in prop_conv_solver.cpp, under some configurations g++-5 would
miscompile the inline version.

This can't be tested without adding yet another CI profile, but anyone with compiler gcc-5.5.0-12ubuntu1 20171010 should be able to reproduce with build -O2 -g0, aka cmake's build type Release. In particular objdump -t cbmc shows a definition for non-virtual thunk to prop_conv_solvert::decision_procedure_text() const not non-virtual thunk to prop_conv_solvert::decision_procedure_text[abi:cxx11]() const as it ought to (and does with g++-7, or g++-5 -g).

… g++-5 bug

As elaborated in the comment in prop_conv_solver.cpp, under some configurations g++-5 would
miscompile the inline version.
@tautschnig
Copy link
Collaborator

@smowton Please rebase now that #4729 is in to make CI happy.

@smowton smowton merged commit ae2264d into diffblue:develop May 30, 2019
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️
Passed Diffblue compatibility checks (cbmc commit: 6976b67).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/113771892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants